"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.圣灯Handler = void 0;
const Config_1 = require("../../Config");
const Big_1 = require("../Big");
class 圣灯Handler {
    constructor(gameMgr, handlerMgr) {
        this.gameMgr = gameMgr;
        this.handlerMgr = handlerMgr;
    }
    gc() {
        this.gameMgr = null;
        this.handlerMgr = null;
    }
    圣灯_赐福(data, player) {
        this.handlerMgr.spendAction(player, Config_1.Config.COST_圣灯_赐福);
        let endPoint = this.gameMgr.map_point.get(data.end);
        let big_end = endPoint.big;
        big_end.addState(Big_1.BigState.SHIELD);
        let startPoint = this.gameMgr.map_point.get(data.start);
        let big_start = startPoint.big;
        big_start.actionEnd();
    }
}
exports.圣灯Handler = 圣灯Handler;
